/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package plan;

import java.awt.Component;
import java.awt.Graphics;
import java.awt.Insets;
import javax.swing.border.Border;

/**
 *
 * @author phucan
 */
public class CustomBorder implements Border{
Insets ins;
public CustomBorder(){
    ins=new Insets(0, 0, 0, 0);
}
    @Override
    public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        g.drawLine(x, y, x+width, y);
        g.drawLine(x, y, x, y+height);
    }

    @Override
    public Insets getBorderInsets(Component c) {
       return ins;
    }

    @Override
    public boolean isBorderOpaque() {
       return false;
    }
    
}
